@extends('layout')
@section('css')
<link rel="stylesheet" href="{{URL::asset('css/myPrize.css')}}">
@endsection
@section('content')
<div class="prizeBox">
    <div class="addUp">累计红包 <span class="addUpAmount">{{$amount}}</span>元</div>
    <div class="withDrawals">提现</div>
    <div class="record">得奖记录</div>
    <div class="main">
        @foreach($prize as $value)
        <div class="row prizeList">
            <div class="day col-xs-5">{{$value['add_time']}}</div>
            <div class="name col-xs-5">获得{{$value['name']}}{{$value['amount']}}元</div>
            @if($value['prize_type']==0)
            <div class="amount col-xs-2"></div>
            @else
            <div class="amount col-xs-2"><img src="{{URL::asset('img/caret.png')}}" alt="" class="myCaret"></div>
            @endif
        </div>
        @endforeach
    </div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="prompt">
    <div class="modal-dialog" role="document" style="text-align:center">
        <span class="text">提现请先关注公众号</span>
        <img src="{{URL::asset('img/erweima.png')}}" width="100%">
    </div>
</div>
@endsection
@section('script')
<script>    
    window.location.href="https://hxsapp_visible_act_share_btn#分享标题#分享链接#封面地址#分享描述#活动分享统计类型名称";
    $(document).ready(function(){
        var u_id = '{{$u_id}}';
        if(u_id==''){
            alert('请先登录再来');
            location.href = '/';
        }
    });
    $('.withDrawals').on('click',function(){
        $('#prompt').modal('show');
    });
</script>
@endsection